package com.yhsimon.thread;

//方式一  继承Thread
public class ThreadTest1 extends Thread{
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("我在浏览记录"+i);
        }
    }

    public static void main(String[] args) {
        ThreadTest1 test1 = new ThreadTest1();
        test1.start();

        for (int i = 0; i < 500; i++) {
            System.out.println("我在查看数据记录"+i);
        }
    }
}
